from pandas import DataFrame, ExcelWriter


def writeToxlsx(filename, content):
    with ExcelWriter(filename) as writer:
        # df = DataFrame().from_dict(content, orient="index").T
        df = DataFrame(content)
        df.to_excel(writer, sheet_name="all", index=False, engine="openpyxl")
        # writer.save()
